Skip to content

feat: add Swedish language support in settings and translations#374

Merged
nekename merged 6 commits into
nekename:mainfrom
snowfruit:feat/add-sv-lang
Jul 24, 2026
Merged

feat: add Swedish language support in settings and translations#374
nekename merged 6 commits into
nekename:mainfrom
snowfruit:feat/add-sv-lang

Conversation

@snowfruit

@snowfruit snowfruit commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Preflight checklist

If you remove this checklist, this pull request will be closed without explanation.

  • I understand that if this pull request is about support for non-Elgato or non-Tacto hardware, it will be closed without explanation, as per issue Statement regarding device support #38.
  • I certify the compliance of this pull request with the Jellyfin LLM/"AI" Development Policy adopted by the OpenDeck project.
  • I thoroughly understand the changes that I am proposing in this pull request, and I will be able to respond to questions and review feedback.
  • I reasonably believe that the changes that I am proposing are of production quality, or I am otherwise opening this pull request as a draft.
  • I have thoroughly reviewed the diff of my changes and ensured that I have neither introduced any unrelated additions, nor differences in unmodified code.
  • I have ensured that I have run the appropriate formatter on my changes and that my code produces no linter violations.
  • I will keep "Allow edits from maintainers" enabled for this pull request.

Inspired by this #370 .

I think this PR introduces the first version of the Swedish language translation.

The current version is translated and proofread by me. Some phrases were searched for to find suitable alternatives.

I have not used github in a long time so I hope this is correct.

@CLAassistant

CLAassistant commented Jun 29, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@nekename

Copy link
Copy Markdown
Owner

Hey, thanks for this :)

I'll take a look when I get back to this project

Copied the contents of en.json to start the translation.
Added options for sv/Svenska
Translated file to Swedish.

Edited with gedit and copy/paste on github.

Compared line by line before sharing.
paste -d '\n' en.json sv.json > combined.txt
Missing EOL ',' on many lines from copy/pasting errors on the combined file.
@nekename

Copy link
Copy Markdown
Owner

@snowfruit could you confirm that Claude's suggested change from Nyckel to Knapp is correct?

@snowfruit

snowfruit commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

@snowfruit could you confirm that Claude's suggested change from Nyckel to Knapp is correct?

Button is Knapp in Swedish.
Key is Nyckel.

Is "device_view.key" used as in "API key" I think "Nyckel" is correct.

@nekename

nekename commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Is "device_view.key" used as in "API key"

No, it's used as in Key in the button grid.

<div class="flex flex-row" role="row">
	{#each { length: device.columns } as _, c}
		<Key
			context={{ device: device.id, profile: profile.id, controller: "Keypad", position: r * device.columns + c }}
			bind:inslot={profile.keys[r * device.columns + c]}
			on:dragover={handleDragOver}
			on:drop={(event) => handleDrop(event, "Keypad", r * device.columns + c)}
			on:dragstart={(event) => handleDragStart(event, "Keypad", r * device.columns + c)}
			{handlePaste}
			size={device.id.startsWith("sd-") && device.rows == 4 && device.columns == 8 ? 192 : 144}
			label="{$t('device_view.key')} {String.fromCharCode(65 + r)}{c + 1}"
			tabindex={focusedRow === r && focusedCol === c ? 0 : -1}
		/>
	{/each}
</div>

@snowfruit

Copy link
Copy Markdown
Contributor Author

Is "device_view.key" used as in "API key"

No, it's used as in Key in the button grid.

Than "tangent" or "knapp" is correct. Tangent if only on keyboard. Knapp can be anything you can push.

Great catch.

@nekename
nekename merged commit efd112b into nekename:main Jul 24, 2026
1 check passed
@nekename

Copy link
Copy Markdown
Owner

Thanks @snowfruit!

@snowfruit

Copy link
Copy Markdown
Contributor Author

Thanks @snowfruit!

Thank you for adding Swedish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants